laravel blade for if

31

@if($user->status =='active')         
      <td>{{ $user->name }}</td>         
@else
      <td> Guest </td>        
@endif
@forelse ($users as $user)
    <li>{{ $user->name }}</li>
@empty
    <p>No users</p>
@endforelse

Comments

Submit
0 Comments